package com.huatai.manage.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.huatai.manage.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 试验对象;
 * </p>
 *
 * @author luoxc
 * @since 2023-03-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_trial_subject")
@ApiModel(value = "TbTrialSubject对象", description = "试验对象")
public class TbTrialSubjectEntity extends BaseEntity {

	@ApiModelProperty(value = "主键id")
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	@ApiModelProperty(value = "对象id")
	@TableField("subject_id")
	private String subjectId;

	@ApiModelProperty(value = "对象名称")
	@TableField("subject_name")
	@NotBlank(message = "对象名称不能为空")
	private String subjectName;

	@ApiModelProperty(value = "ws地址")
	@TableField("ws_url")
	@NotBlank(message = "ws地址不能为空")
	private String wsUrl;

	@ApiModelProperty(value = "模型id")
	@TableField("model_id")
	@NotBlank(message = "模型id不能为空")
	private String modelId;

	@ApiModelProperty(value = "标签id")
	@TableField("label_id")
	@NotBlank(message = "标签id不能为空")
	private String labelId;

	@ApiModelProperty(value = "特效id")
	@TableField("effect_id")
	@NotBlank(message = "特效id不能为空")
	private String effectId;

	@ApiModelProperty(value = "主题id")
	@TableField("topic_id")
	@NotBlank(message = "主题id不能为空")
	private String topicId;

	@ApiModelProperty(value = "模型轨迹")
	@TableField("model_locus")
	private String modelLocus;

	@ApiModelProperty(value = "模型参数（长、宽、高）")
	@TableField("model_parameter")
	private String modelParameter;

	@ApiModelProperty(value = "备注")
	@TableField("remark")
	private String remark;

	@ApiModelProperty(value = "状态")
	@TableField("state")
	@NotBlank(message = "状态不能为空")
	private String state = "1";


}
